package com.tust.app.service;

import com.tust.app.domain.News;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

public interface NewService {

    List<News> getAllNews();


    List<News>  search(String title);

    //添加文章
    Integer addArticle(News news);
    News findNewsById(Integer id);

    boolean modifyNews(News news);

    boolean delNews(Integer id);


}
